<% if doc %>
  <div class="doc-card">
    <div class="mb-1 text-main">
      <%= doc_title_tag(doc) %>
    </div>
    <div class="path">
      <%= user_name_tag(doc.repository&.user, with_icon: true) %> / 
      <%= repository_name_tag(doc.repository, with_icon: true) %>
    </div>
  </div>
<% end %>
